package com.dormitory.manage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dormitory.manage.pojo.User;
import com.dormitory.manage.vo.LoginVo;
import com.dormitory.manage.vo.UpdateInfoVo;
import com.dormitory.manage.vo.UpdatePasswordVo;

/**
 * @author Administrator
 * @version 1.0
 * @description userService
 * @date 2023/4/5 0005 13:40
 */
public interface UserService extends IService<User> {
    boolean login(LoginVo loginVo);
    User getUserByUsername(String username);

    User getUserInfoByToken(String token);

    void setToken(String username, String token);

    boolean updatePassword(UpdatePasswordVo updatePasswordVo);

    boolean updateInfo(String username,UpdateInfoVo updateInfoVo);

    boolean logout(String token);
}
